//
//  ShopCell.m
//  04-瀑布流
//
//  Created by J on 15/11/12.
//  Copyright © 2015年 JZJ. All rights reserved.
//

#import "ShopCell.h"


#import "Shop.h"
//服务器必须返回宽高 才能做瀑布流
@interface ShopCell()

@property (weak, nonatomic) IBOutlet UIImageView *imageView;


@property (weak, nonatomic) IBOutlet UILabel *priceLabel;


@end

@implementation ShopCell


- (void)setShop:(Shop *)shop{
    
    
    _shop = shop;
  
    //图片
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:shop.img] placeholderImage:[UIImage imageNamed:@"loading"]];
    
    //价格
    
    self.priceLabel.text = shop.price;
    
    
    
}


@end
